package com.shengzhe.ostudent.entity.base;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author s.li
 * @describe 实体基础类
 * @date 2020/12/9 13:49
 */
@Data
public class BaseEntity implements Serializable {
    public static final String DEF_PARENT_ID = "0";
    public static final String YYYY_MM_DD = "yyyy-MM-dd";
    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
    public static final String YYYY_MM_DD_HH_MM = "yyyy-MM-dd HH:mm";

    private Long id;
    /**
     * 创建时间
     */
    @JSONField(format = YYYY_MM_DD_HH_MM_SS)
    private Date createTime;
    /**
     * 更新时间
     */
    @JSONField(format = YYYY_MM_DD_HH_MM_SS)
    private Date updateTime;
}
